package com.yanchangapp.model.bean;

import java.util.List;

public class MailItemBean {
    /**
     * id : 804825
     * uid : null
     * userId : null
     * username : null
     * senderAddress : huangyuxin@wjsci.com
     * senderNickname : 黄彧昕
     * toUsers : [{"id":2696673,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"zhouzhou","address":"zhouzhou@extsci.com","type":0,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0}]
     * ccUsers : [{"id":2696674,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"pxb","address":"pxb@extsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696675,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"guowei","address":"guowei@extsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696676,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"xiequn","address":"xiequn@wjsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696677,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"xulei","address":"xulei@wjsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696678,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"fuyanzhao","address":"fuyanzhao@wjsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696679,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"wangdunyun","address":"wangdunyun@wjsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696680,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"huangyuxin","address":"huangyuxin@wjsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0},{"id":2696681,"mailId":804825,"userId":260014,"username":"huangyuxin","nickname":"dingling","address":"dingling@wjsci.com","type":1,"createId":260031,"createTime":"2019-06-24 10:48:49","updateId":null,"updateTime":"2019-06-24 10:48:49","deleteFlag":0}]
     * attachments : [{"id":21483628,"mailId":804825,"cid":null,"userId":260014,"username":"huangyuxin","name":"关于桥接四方平台新增\u201c我的管理\u201d模块使用的通知.pdf","size":712383,"path":"https://ftp.wjsci.com:4431/file/mail/2c07e5215e9a4bfab8868744252fb08f.pdf","createId":null,"createTime":null,"updateId":null,"updateTime":null,"deleteFlag":null,"body":null},{"id":21483629,"mailId":804825,"cid":null,"userId":260014,"username":"huangyuxin","name":"uat.apk","size":2688161,"path":"https://ftp.wjsci.com:4431/file/mail/baf362ccbf194ca29e8fb44727e8254e.apk","createId":null,"createTime":null,"updateId":null,"updateTime":null,"deleteFlag":null,"body":null}]
     * mailbox : 1
     * subject : Re:桥接四方操作手册
     * content : Dear 周洲，以下是测试账号 web端地址：https://uat.wjsci.com/ 移动端：
     * mailTime : 2019-06-24 10:48:49
     * forwardFlag : null
     * replayFlag : null
     * seenFlag : 0
     * createId : null
     * createTime : null
     * updateId : null
     * updateTime : null
     * deleteFlag : null
     * attachmentFlag : 1
     */

    private int id;
    private String username;
    private String senderAddress;
    private String senderNickname;
    private int mailbox;
    private String subject;
    private String content;
    private String mailTime;
    private int seenFlag;
    private int attachmentFlag;
    private List<MailUserBean> toUsers;
    private List<MailUserBean> ccUsers;
    private List<AttachmentsBean> attachments;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSenderAddress() {
        return senderAddress;
    }

    public void setSenderAddress(String senderAddress) {
        this.senderAddress = senderAddress;
    }

    public String getSenderNickname() {
        return senderNickname;
    }

    public void setSenderNickname(String senderNickname) {
        this.senderNickname = senderNickname;
    }

    public int getMailbox() {
        return mailbox;
    }

    public void setMailbox(int mailbox) {
        this.mailbox = mailbox;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMailTime() {
        return mailTime;
    }

    public void setMailTime(String mailTime) {
        this.mailTime = mailTime;
    }


    public int getSeenFlag() {
        return seenFlag;
    }

    public void setSeenFlag(int seenFlag) {
        this.seenFlag = seenFlag;
    }


    public int getAttachmentFlag() {
        return attachmentFlag;
    }

    public void setAttachmentFlag(int attachmentFlag) {
        this.attachmentFlag = attachmentFlag;
    }

    public List<MailUserBean> getToUsers() {
        return toUsers;
    }

    public void setToUsers(List<MailUserBean> toUsers) {
        this.toUsers = toUsers;
    }

    public List<MailUserBean> getCcUsers() {
        return ccUsers;
    }

    public void setCcUsers(List<MailUserBean> ccUsers) {
        this.ccUsers = ccUsers;
    }

    public List<AttachmentsBean> getAttachments() {
        return attachments;
    }

    public void setAttachments(List<AttachmentsBean> attachments) {
        this.attachments = attachments;
    }


    public static class AttachmentsBean {
        /**
         * id : 21483628
         * mailId : 804825
         * cid : null
         * userId : 260014
         * username : huangyuxin
         * name : 关于桥接四方平台新增“我的管理”模块使用的通知.pdf
         * size : 712383
         * path : https://ftp.wjsci.com:4431/file/mail/2c07e5215e9a4bfab8868744252fb08f.pdf
         * createId : null
         * createTime : null
         * updateId : null
         * updateTime : null
         * deleteFlag : null
         * body : null
         */

        private int id;
        private int mailId;
        private Object cid;
        private int userId;
        private String username;
        private String name;
        private int size;
        private String path;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getMailId() {
            return mailId;
        }

        public void setMailId(int mailId) {
            this.mailId = mailId;
        }

        public Object getCid() {
            return cid;
        }

        public void setCid(Object cid) {
            this.cid = cid;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

    }
}


